{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "f7de6f82",
   "metadata": {},
   "source": [
    "### 课后实践：\n",
    " * 将字典的所有方法 用表格形式做学习记录\n",
    " * 示例如下\n",
    "    \n",
    "|序号|字典的方法|用法|使用结果|注意事项|\n",
    "|---|-----|-----|-----|----|\n",
    "|1|字典的删除pop()| D.pop(k[,d])| remove specified key and return the corresponding value|KeyError出现情况：key找不到|\n",
    "|2|字典查询所有关键字keys()|D.keys()|a set-like object providing a view on D's keys|keys的结果是什么类型|\n",
    "|3|字典的复制copy()| D.copy()| a shallow copy of D|None|\n",
    "|4|字典的获取get()|get(key, default=None, /)| Return the value for key|keyError-key is not in dictionary|\n",
    "|5|字典的项目items()| D.items()| a set-like object providing a view on D's items|None|\n",
    "|6|字典的关键keys() keys:items | D.keys()| a set-like object providing a view on D's keys|None|\n",
    "|7|字典的删除返回popitem()|popitem()| Remove and return a (key, value) pair as a 2-tuple.|KeyError-the dict is empty.|\n",
    "|8|字典的部分初始化|setdefault(key, default=None, /)| Insert key with a value of default if key is not in the dictionary.Return the value for key if key is in the dictionary, else default.|None|\n",
    "\n",
    "   "
   ]
  },
  {
   "cell_type": "markdown",
   "id": "bf5be25c",
   "metadata": {},
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
